SUBROUTINE DEFINITIONLIST4
     * Display a definition list containing 3 items

     * Include the RealWeb definitions
     INCLUDE #RW.INCLUDE.DEFS FROM /SYSFILES/REALWEB,BP

     * Start the HTML page.
     * Display the text 'Small Glossary' in the browser's title bar.
     CALL RW_START_HTML_PAGE("Small Glossary", "", "", "", "")

     *Set up the array of TERMS
     TERMS=""
     TERMS<1>="Cookie"
     TERMS<2>="CSS"
     TERMS<3>="Servlet"

     *Set up the array of DEFINITIONS
     DEFINITIONS=""
     DEFINITIONS<1>="A small amount of named data stored by the web server " : ...
        "and associated with a particular page or web site."
     DEFINITIONS<2>="Cascading Style Sheet. The preferred method of " : ...
        "specifying the appearance of a web page."
     DEFINITIONS<3>="A server-side Java program that services HTTP " : ...
        "requests and returns HTTP responses."

     CLASS=""

     *Create the definition list
     CALL RWA_MAKE_DLIST(BUF,TERMS,DEFINITIONS,CLASS)
     *Display the list
     CALL RW_PUT(BUF)

     *Complete the page
     CALL RW_END_PAGE
RETURN

Go to top button